package com.huluobo.a2308douyindemo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2308douyindemo.R
import com.huluobo.a2308douyindemo.bean.Gift7037Bean
import com.huluobo.a2308douyindemo.net.Const
import com.huluobo.a2308douyindemo.utils.ImageUtils

/**
 *  Created by LC on 2025/10/30.
 */
class GiftAdapter : BaseQuickAdapter<Gift7037Bean, BaseViewHolder>(R.layout.item_gift) {
    override fun convert(holder: BaseViewHolder, item: Gift7037Bean) {
        ImageUtils.loadRoundImage(
            context,
            Const.BASE_URL_7015 + item.imgUrl,//拼接图片地址
            holder.getView(R.id.item_gift_icon_iv),
            20
        )
        holder.setText(R.id.item_gift_price_tv, "${item.price}抖币")
    }
}